
package com.cmc.dao;

import java.util.List;

import com.cmc.dao.Dao;
import com.cmc.model.PersonalRest;

public interface PersonalRestDao extends Dao {

    /**
     * Retrieves all of the personalRests
     */
    public List getPersonalRests(PersonalRest personalRest);

    /**
     * Gets personalRest's information based on primary key. An
     * ObjectRetrievalFailureException Runtime Exception is thrown if 
     * nothing is found.
     * 
     * @param id the personalRest's id
     * @return personalRest populated personalRest object
     */
    public PersonalRest getPersonalRest(final Long id);

    /**
     * Saves a personalRest's information
     * @param personalRest the object to be saved
     */    
    public void savePersonalRest(PersonalRest personalRest);

    /**
     * Removes a personalRest from the database by id
     * @param id the personalRest's id
     */
    public void removePersonalRest(final Long id);
}

